<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript">

$(document).ready(function(){
	
});

//데이터 저장
function submitData(){

	$("#frmData").submit();
}
</script>
<%@ include file="/WEB-INF/jsp/pmgr/pe/ti/page_top.jsp"%>

<form action="./peti502T.do" method="post" id="frmData" >
	<input type="hidden" name="p_id" value="${r_map.p_id }">
	<input type="hidden" name="pr_no" value="${r_map.pr_no }">
	<table width="800" border="0"  cellspacing="1" cellpadding="2" class="class_admin_table">
		<tr> 
			<td height="25" class="class_admin_table_head" width="130" align="center">사이트명</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp; <input type="text" name="room_nm" maxlength="50" size="50" value="${r_map.room_nm }"></td>
		</tr>
		<tr style="display: none;"> 
			<td height="25" class="class_admin_table_head" width="130" align="center">사이트구분</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp;
					<input type="radio" name="room_type" value="F" <c:if test="${r_map.room_type=='F' }">checked="checked"</c:if> >가족룸
					<input type="radio" name="room_type" value="C" <c:if test="${r_map.room_type=='C' }">checked="checked"</c:if>>커플룸
					<input type="radio" name="room_type" value="B" <c:if test="${r_map.room_type=='B' }">checked="checked"</c:if>>단체룸
					</td>
		</tr>
		<tr> 
			<td height="25" class="class_admin_table_head" width="130" align="center">사이트그룹</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp;
				<select name="pg_no">
					<option value="0">선택하세요</option>
				<c:if test="${groupList !=null && fn:length(groupList)>0 }">
					<c:forEach var="op" items="${groupList}" varStatus="status">
					<option value="${op.pg_no }" <c:if test="${r_map.pg_no ==op.pg_no  }">selected="selected"</c:if>>${op.group_nm }</option>
					</c:forEach>
				</c:if>
					
				</select>
			</td>
		</tr>
		<tr> 
			<td height="25" class="class_admin_table_head" width="130" align="center">사이트형태</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp; <input type="text" name="room_form" maxlength="50" size="50" value="${r_map.room_form }"></td>
		</tr>
		<tr> 
			<td height="25" class="class_admin_table_head" width="130" align="center">사이트면적</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp; 
				<input type="text" name="area_p" maxlength="10" size="10" value="${r_map.area_p }">가로
				<input type="text" name="area_m" maxlength="10" size="10" value="${r_map.area_m }">세로
			</td>
		</tr>
		<tr> 
			<td height="25" class="class_admin_table_head" width="130" align="center">사용인원</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp;
			기본 : <input type="text" name="use_man_cnt" maxlength="10" size="10" value="${r_map.use_man_cnt }" onkeyup="checkn(this)">
			최대 : <input type="text" name="use_max_cnt" maxlength="10" size="10" value="${r_map.use_max_cnt }" onkeyup="checkn(this)">
			성인추가 비용 : <input type="text" name="add_usr_pay" maxlength="10" size="10" value="${r_map.add_usr_pay }" onkeyup="checkn(this)">,000원
			아동추가 비용 : <input type="text" name="add_child_pay" maxlength="10" size="10" value="${r_map.add_child_pay }" onkeyup="checkn(this)">,000원
			</td>
		</tr>
		<tr> 
			<td height="25" class="class_admin_table_head" width="130" align="center">이용금액</td>
			<td height="25" class="class_admin_table_blank">
			<table width="600" border="0"  cellspacing="1" cellpadding="2" class="class_admin_table">
			<tr>
				<td class="class_admin_table_head" width="150" align="center">금액</td>
				<td class="class_admin_table_head" width="150" align="center">주중</td>
				<td class="class_admin_table_head" width="150" align="center">금요일</td>
				<td class="class_admin_table_head" width="150" align="center">토요일</td>
			</tr>
			<tr>
				<td class="class_admin_table_head" align="center">비수기</td>
				<td class="class_admin_table_blank" align="center"><input type="text" name="busy_1_base" maxlength="10" size="10" value="${r_map.busy_1_base }" onkeyup="checkn(this)">,000원</td>
				<td class="class_admin_table_blank" align="center"><input type="text" name="busy_1_fri" maxlength="10" size="10" value="${r_map.busy_1_fri }" onkeyup="checkn(this)">,000원</td>
				<td class="class_admin_table_blank" align="center"><input type="text" name="busy_1_sat" maxlength="10" size="10" value="${r_map.busy_1_sat }" onkeyup="checkn(this)">,000원</td>
			</tr>
			<tr>
				<td class="class_admin_table_head" align="center">준수기</td>
				<td class="class_admin_table_blank" align="center"><input type="text" name="busy_2_base" maxlength="10" size="10" value="${r_map.busy_2_base }" onkeyup="checkn(this)">,000원</td>
				<td class="class_admin_table_blank" align="center"><input type="text" name="busy_2_fri" maxlength="10" size="10" value="${r_map.busy_2_fri }" onkeyup="checkn(this)">,000원</td>
				<td class="class_admin_table_blank" align="center"><input type="text" name="busy_2_sat" maxlength="10" size="10" value="${r_map.busy_2_sat }" onkeyup="checkn(this)">,000원</td>
			</tr>
			<tr>
				<td class="class_admin_table_head" align="center">성수기</td>
				<td class="class_admin_table_blank" align="center"><input type="text" name="busy_3_base" maxlength="10" size="10" value="${r_map.busy_3_base }" onkeyup="checkn(this)">,000원</td>
				<td class="class_admin_table_blank" align="center"><input type="text" name="busy_3_fri" maxlength="10" size="10" value="${r_map.busy_3_fri }" onkeyup="checkn(this)">,000원</td>
				<td class="class_admin_table_blank" align="center"><input type="text" name="busy_3_sat" maxlength="10" size="10" value="${r_map.busy_3_sat }" onkeyup="checkn(this)">,000원</td>
			</tr>
			</table>
			</td>
		</tr>
		<tr> 
			<td height="25" class="class_admin_table_head" width="130" align="center">이용상태</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp; 
				<input type="radio" name="use_yn" value="Y" <c:if test="${r_map.use_yn=='Y' }">checked="checked"</c:if>> 이용
				<input type="radio" name="use_yn" value="N" <c:if test="${r_map.use_yn!='Y' }">checked="checked"</c:if>> 이용정지			
			</td>
		</tr>
		</table><br>
		<br>

		<table width="800" border="0"  cellspacing="1" cellpadding="2" class="class_admin_table_nocolor">
		<tr> 
			<td height="25"  align="center">
						<input type="button" onclick="submitData();" value=" 수  정 ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!-- 						<input type="button" onclick="location.href='?menu=pension&mode=room&p_id=migaram&page=1'" value="사이트목록">  -->
			</td>
		</tr>

	</table>
</form>
